package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface StrategyCatalogMapper {

    int insert(StrategyCatalog entity);

    StrategyCatalog selectByPrimaryKey(Long id);

    List<StrategyCatalog> selectAll();

    int updateByPrimaryKey(StrategyCatalog entity);

    List<StrategyCatalog> selectForList(QueryObject qo);

    int selectMaxSequence(Long strategyId);

    /**
     * 通过strategyId 查询攻略分类
     * @param strategyId
     * @return
     */
    List selectBystrategyId(Long strategyId);

}